package edu.ncst.baseweb.mapper;

import edu.ncst.baseweb.dao.User;
import edu.ncst.baseweb.dao.res.ResInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResInfoMapper extends BaseMapper<ResInfo> {
    void updateStateById(@Param("id")Integer id,@Param("state") Integer state);

    Integer countRecordsByResId(@Param("id") int id);

    List<String> getUserIdsByResId(Integer id);

    User getUsersByIds(String userId);

}
